/*
*You have to enter number of lab
*and follow the instructions
*/


#include <iostream>
using namespace std;

int main (int argc, const char* argv[])
{
    int numberSwitch = 0;

    std::string inputWord = "";
    int inputInt = 0;
    float inputFloat = 0;
    char inputChar;

    std::cout << "Please enter the number of lab" << std::endl;
    std::cout << "1 Enter one integer" << std::endl;
    std::cout << "2 Enter four integers" << std::endl;
    std::cout << "3 Enter one integer and one real number" << std::endl;
    std::cout << "4 Enter one real and one real number" << std::endl;
    std::cout << "5 Enter a character" << std::endl;
    std::cout << "6 Enter a word:" << std::endl;
    std::cout << "7 Enter an integer and a word:" << std::endl;
    std::cout << "8 Enter an character and a word:" << std::endl;
    std::cout << "9 Enter a word and a real number:" << std::endl;
    std::cout << "10 Enter a text-line:" << std::endl;
    std::cout << "11 Enter a second line of text:" << std::endl;
    std::cout << "12 Enter three words:" << std::endl;

    std::cin >> numberSwitch;

    switch (numberSwitch) {
    case 1:
         std::cout << "Enter one integer: ";
         std::cin >> inputInt;
         std::cout << "You entered the number: " << inputInt << std::endl;
         break;
    case 2:
         std::cout <<  "Enter four integer: ";
         std::cin >> inputInt;
         std::cout << "You entered the numbers: " << inputInt;
         std::cin >> inputInt;
         std::cout << " " << inputInt;
         std::cin >> inputInt;
         std::cout << " " << inputInt;
         std::cin >> inputInt;
         std::cout << " " << inputInt << std::endl;
         break;
    case 3:
         std::cout << "Enter one integer and one real number: ";
         std::cin >> inputInt;
         std::cin >> inputFloat;
         std::cout << "The real is: ";
         std::cout.width(13) << std::cout.precision(4);
         std::cout << std::right << inputFloat << std::endl;
         std::cout << "The integer is: ";
         std::cout.width(10);
         std::cout << std::right << inputInt << std::endl;
         break;
    case 4:
         std::cout << "Enter one real and one integer number: ";
         std::cin >> inputFloat;
         std::cin >> inputInt;
         std::cout << "The real is: ";
         std::cout.width(13) << std::cout.fill ('_') << std::cout.precision(4);
         std::cout << std::right << inputFloat << std::endl;
         std::cout << "The integer is: ";
         std::cout.width(10) << std::cout.fill ('_');
         std::cout << std::right << inputInt << std::endl;
         break;
    case 5:
         std::cout << "Enter a character: ";
         std::cin >> inputChar;
         std::cout << "You entered: "  << inputChar << std::endl;
         break;
    case 6:
         std::cout << "Enter a word: ";
         std::cin >> inputWord;
         std::cout << "You entered: " << inputWord  << std::endl;
         break;
	case 7:
	     std::cout << "Enter an integer and a word: ";
	     std::cin >> inputInt;
	     std::cin >> inputWord;
	     std::cout << "You entered '"  << inputInt << "' and '" << inputWord << "'." << std::endl;
         break;
	case 8:
	     std::cout << "Enter an character and a word: ";
	     std::cin >> inputChar;
	     std::cin >> inputWord;
	     std::cout << "You entered the string \""  << inputWord << "\" and the character '" << inputChar << "'." << std::endl;
         break;
	case 9:
	     std::cout << "Enter a word and a real number: ";
         std::cin >> inputWord;
	     std::cin >> inputFloat;
	     std::cout << "You entered \"" << inputWord << "\" and \"";
	     std::cout.width(5) << std::cout.fill ('0');
	     std::cout << std::left << inputFloat << "\"." << std::endl;
         break;
	case 10:
	     std::cout << "Enter a text-line: ";
         std::cin >> inputWord;
	     std::cout << "You entered: \"";
         std::cout << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord <<"\"" << std::endl;
         break;
	case 11:
	     std::cout << "Enter a second line of text: ";
         std::cin >> inputWord;
         std::cout << "You entered '" << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " <<  inputWord << "\"" << std::endl;
         break;
	case 12:
         std::cout << "Enter three words: ";
         std::cin >> inputWord;
         std::cout << "You entered: '" << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord;
         std::cin >> inputWord;
         std::cout << " " << inputWord << "'" << std::endl;
         break;
    } // switch
}
